package com.mpyy.dao.inventory;

import com.mpyy.pojo.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value = "productInfoMapperDaoInter")
public interface ProductInfoMapperDaoInter {
    List<ProductInfo> showAllProductInfoCollect(ProductInfo productInfo);

    /*查询仓库表信息*/
    List<DepotInfo> searchDepotInfo();

    /*查询员工信息*/
    List<EmployeeInfo> searchEmployeeInfo();

    /*查询仓库明细表信息*/
    List<InventoryDesc> searchInventoryDescInfo(InventoryDesc inventoryDesc);

    /*根据商品类型编号和仓库编号 查询库存明细信息*/
    List<InventoryDesc> searchInventorDescInfoType(InventoryDesc inventoryDesc);

    /*查询商品批次信息*/
    List<InventoryDesc> searchCommodityBatch(InventoryDesc inventoryDesc);

    /*库存调拨情况列表*/
    List<InventoryAllocation> searchInventoryAllocationInfo(InventoryAllocation inventoryAllocation);

    /*库存调拨情况根据时间查询*/
    List<InventoryAllocation> searchInventoryAllocationInfoData(InventoryAllocation inventoryAllocation);

    /*查询单据详细信息*/
    List<InventoryAllocationDesc> searchInventoryAllocationDescInfo(String invAllotId);

    /*新增一条库存调拨信息*/
    int updateInventoryAllocation(InventoryAllocation inventoryAllocation);

    /*新增库存调拨明细表信息*/
    int updateInventoryAllocationDesc(InventoryAllocationDesc inventoryAllocationDesc);

    /*修改调出仓库库存明细的商品信息*/
    int updateInventoryDescNumber(InventoryDesc inventoryDesc);

    /*修改调入仓库库存详细的商品信息*/
    int updateInventoryDescNumberIn(InventoryDesc inventoryDesc);

    /*根据仓库编号和商品编号查询指定库存明细表中是否有这件商品*/
    List<InventoryDesc> searchInventoryDescInfoAssign(InventoryDesc inventoryDesc);

    /*调入仓库商品不存在这个仓库 对这件商品在这个仓库做新增操作*/
    int updateInventoryDescIn(InventoryDesc inventoryDesc);

    /*树形控件*/
    List<ProductType> searchTreeControl(String proTypeId);
}
